
/**
 * Created by JLB1 on 2017/1/20.
 */
import React, {Component, PropTypes} from 'react'
import ReactDOM from "react-dom"
import { addErrorListener } from "../../lib/handleError"
import weixinShare from '../../lib/weixinShare';
import AJAX from "../../lib/ajax"
require('../../lib/rem');
require('../../styles/common.less');
require('../../styles/resetWeui.less');
require('../../styles/lux.less');
require('./BindPhoneError.less');


class BindPhoneError extends Component {
    constructor(props) {
        super(props)
    }
    componentWillMount() {
        addErrorListener()()
        weixinShare.hideAll()
    }

    componentDidMount() {
        AJAX.appendBaiduAnalysis()
    }

    render() {
        let msg = window.localStorage.getItem('JLB_bindphoneErrmsg');
        return (
            <div>
                <div className="bindErrorBox">
                    <div className="bindErrorMain">
                        <div>
                            <i className="iconfont icon-iconfontcolor93 bindErrorIcon"/>
                        </div>
                        <div>
                            <p className="error"> 对不起，绑定失败！</p>
                            <p className="bindPhone">{msg}</p>
                        </div>
                    </div>
                </div>
                <div className="handleBtnGroup">
                    <a href="./ReplacePhone" className="weui-btn weui-btn_yellow">重新绑定</a>
                </div>
            </div>
        )
    }
}
ReactDOM.render(<BindPhoneError/>, document.getElementById('app'));
if (module.hot) {
    module.hot.accept();
}

